import { defineConfig } from 'vite'
import UnoCSS from 'unocss/vite'

export default defineConfig(() => {
  return {
    server: {
      host: true,
      port: 3001
    },
    plugins: [
      UnoCSS()
    ],
    css: {
      preprocessorOptions: {
        scss: {
          // 解决警告问题：Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
          silenceDeprecations: ['legacy-js-api'],
        }
      }
    }
  }
})
